package com.xywy.find.bean;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 发现 - 提醒
 */
public class Remind implements Cloneable,Serializable{

    private  int     type;

    //*********  type:1
    private  String     hourmin;   //小时分钟
    private  int[]   looparray;  //重复

    //*********  type:2
    private  Long    time;

    private  String  hint;      //提醒名称
    private  String  detail;    //type:2 [ 药品名称 , 药品剂量  以逗号分隔(称重提醒为空)]
    private  int     contentid;
    private  int     belongs;
    public boolean isTogglet() {
		return togglet;
	}

	public void setTogglet(boolean togglet) {
		this.togglet = togglet;
	}

	private boolean togglet ;

    public Remind() {
    }

    public Remind(int type, String hourmin, int[] looparray, String hint, String detail, int contentid,int  belongs,Long time) {
        this.type = type;
        this.hourmin = hourmin;
        this.looparray = looparray;
        this.hint = hint;
        this.detail = detail;
        this.contentid = contentid;
        this.belongs = belongs;
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getHourmin() {
        return hourmin;
    }

    public void setHourmin(String hourmin) {
        this.hourmin = hourmin;
    }

    public int[] getLooparray() {
        return looparray;
    }

    public void setLooparray(int[] looparray) {
        this.looparray = looparray;
    }

    public String getHint() {
        return hint;
    }

    public void setHint(String hint) {
        this.hint = hint;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public int getContentid() {
        return contentid;
    }

    public void setContentid(int contentid) {
        this.contentid = contentid;
    }


    public int getBelongs() {
        return belongs;
    }

    public void setBelongs(int belongs) {
        this.belongs = belongs;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public Remind clone() {
        try {
            return (Remind) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public String toString() {
        return "Remind{" +
                "type=" + type +
                ", hourmin='" + hourmin + '\'' +
                ", looparray=" + Arrays.toString(looparray) +
                ", time=" + time +
                ", hint='" + hint + '\'' +
                ", detail='" + detail + '\'' +
                ", contentid=" + contentid +
                ", belongs=" + belongs +
                '}';
    }
}
